<?php

/*
 * @author Gideon Amissah<kuulmek@yahoo.com>
 */

class BioData extends AppModel {

    var $name = 'BioData';
    var $belongsTo = array(
        'Info' => array(
            'className' => 'Info',
            'foreignKey' => 'info_id',
            'dependent' => false,
            'conditions' => '',
            'fields' => '',
            'order' => '',
            'limit' => '',
            'offset' => '',
            'exclusive' => '',
            'finderQuery' => '',
            'counterQuery' => ''
        )
    );
    
    
    function saveBioData($data=0,$infoId =0) {
        $data['BioData']['info_id'] =$infoId;
        $this->create($data);
        return $this->save($data);
    }

}

?>